home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Magazine / C_Tutorial / Part-13 / PatchLib / source / RemPatchNotifyA.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-12-10  |  1.6 KB  |  63 lines

  1. /*
  2. **    patch.library
  3. **
  4. **    Copyright © 1993-1997 by Stefan Fuchs
  5. **        Freely distributable.
  6. */
  7.  
  8. #ifndef _PATCH_INCLUDES_H
  9. #include "patch_includes.h"
  10. #endif
  11.  
  12.  
  13. /****** patch.library/RemPatchNotifyA ***************************************
  14. *
  15. *   NAME
  16. *        RemPatchNotifyA -- Stop receiving messages, if a patch is changed.
  17. *                           (V5)
  18. *        RemPatchNotify -- varargs stub for RemPatchNotifyA(). (V5)
  19. *
  20. *   SYNOPSIS
  21. *        Error = RemPatchNotifyA( msgport, taglist )
  22. *        D0                       A0       A1
  23. *
  24. *        ULONG Error RemPatchNotifyA( struct MsgPort *, struct TagItem *);
  25. *
  26. *        Error = RemPatchNotify( msgport, firsttag, ...)
  27. *
  28. *        ULONG Error RemPatchNotify( struct MsgPort *, Tag, ...);
  29. *
  30. *   FUNCTION
  31. *        Stop receiving notification requests for the given messageport.
  32. *        The messageport should have been used in a previous call to
  33. *        AddPatchNotify(). Before deallocating your MsgPort you must
  34. *        still reply outstanding messages.
  35. *
  36. *   INPUTS
  37. *        msgport = pointer to msgport or null for no action
  38. *        taglist = pointer to array of tags
  39. *
  40. *   TAGS
  41. *        none defined yet
  42. *
  43. *   RESULT
  44. *        Error = errorcode as defined in patch.h.
  45. *                PATERR_Ok
  46. *                        Indicates success of the operation.
  47. *
  48. *   NOTES
  49. *
  50. *   BUGS
  51. *
  52. *   SEE ALSO
  53. *        AddPatchNotify(), patch.h
  54. *
  55. ******************************************************************************
  56. *
  57. */
  58.  
  59. ULONG LIBFUNC RemPatchNotifyA( REGA0 struct MsgPort *msgport GNUC_REGA0, REGA1 struct TagItem *taglist GNUC_REGA1)
  60. {
  61.     ADeleteMyListNode( FindPatchNotify(msgport));
  62.     return(PATERR_Ok);
  63. }